CREATE TABLE [dbo].[TRASIE_CNTB]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[CO_ASIE] [dbo].[TD_VC_003] NOT NULL,
[CO_CNTA_EMPR] [dbo].[TD_VC_020] NOT NULL,
[CO_TIPO_OPER] [dbo].[TD_VC_003] NOT NULL,
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TRASIE_CN__CO_US__418EA369] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TRASIE_CN__FE_US__4282C7A2] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TRASIE_CN__CO_US__4376EBDB] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TRASIE_CN__FE_US__446B1014] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TRASIE_CNTB] ADD CONSTRAINT [PK__TRASIE_C__F0AEFC257D79703E] PRIMARY KEY CLUSTERED  ([CO_EMPR], [CO_ASIE], [CO_CNTA_EMPR], [CO_TIPO_OPER]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TRASIE_CNTB] ADD CONSTRAINT [FK__TRASIE_CN__CO_EM__19418644] FOREIGN KEY ([CO_EMPR]) REFERENCES [dbo].[TMPARA_TESO] ([CO_EMPR])
GO
